package com.engineering.elink.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.engineering.elink.service.TypeService;


/**
 * 文件格式
 * @author hxjxiaojun
 * @time   2016年8月30日
 */
@RestController
@CrossOrigin
@RequestMapping("/api/type")
@Api(value = "文件格式接口")
public class TypeController {
	@Autowired
	private TypeService typeService;

	
	/**
	 * 获取文件格式
	 * @return
	 */
	@RequestMapping(value="/list",method = RequestMethod.GET)
	@ApiOperation(value = "文件格式列表")
	public Map<String, Object>getList(){
		return typeService.getList();
	}
	
}
